package com.starinside.wp.domain.cookbook;

import com.starinside.wp.domain.NativeWithResultClass;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 餐次-recipe_type(无系统数据)、食物类型-food_type
 */
@Table(name = "tb_recipe_config")
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@NativeWithResultClass
public class RecipeConfig extends RecipeBase implements Serializable {
  private static final long serialVersionUID = 1L;

  /**
   * 类型 
   */
  @Column(name = "type")
  private String type;

  /**
   * 所属对象ID
   */
  @Column(name = "area_id")
  private String areaId;

  /**
   * 名称
   */
  @Column(name = "name")
  private String name;

  /**
   * 值
   */
  @Column(name = "value")
  private String value;

  /**
   * 排序
   */
  @Column(name = "sort_id")
  private Integer sortId;

  /**
   * 状态 0-系统字典 1-用户配置 99-逻辑删除
   */
  @Column(name = "deleted")
  private Boolean deleted = false;

  /**
   * 备注
   */
  @Column(name = "memo")
  private String memo;

  
}